<?php

/**
 * API控制器父类
 */
class API_Controller extends CI_Controller {

    public function __construct()
    {
        parent::__construct();
		//$this->check_token();
    }

    public function check_token()
    {
    	$access_token = $this->input->get_post('accessToken');
    	if ($access_token != ACCESS_TOKEN) {
    		error_output('accessToken密钥验证失败');
    	}
    }

}
